.. _ocafilterfir: 1.1.1.12 OcaFilterFIR ====================== Class Hierarchy: :ref:`OcaRoot ` :raw:html:`→` :ref:`OcaWorker ` :raw:html:`→` :ref:`OcaActuator ` :raw:html:`→` :ref:`OcaFilterFIR ` .. cpp:class:: OcaFilterFIR: OcaActuator A finite impulse response (FIR) filter. **Properties**: .. _ocafilterfir_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.1.12" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``4.1``. .. _ocafilterfir_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 2 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``4.2``. .. _ocafilterfir_length: .. cpp:member:: OcaUint32 Length Length of the filter, in samples. Readonly. Value is set when SetCoefficients(...) method executes. This property has id ``4.1``. .. _ocafilterfir_coefficients: .. cpp:member:: OcaList Coefficients Array of FIR Coefficients. The size of the array (number of entries) is equal to the Order property plus 1. This property has id ``4.2``. .. _ocafilterfir_samplerate: .. cpp:member:: OcaFrequency SampleRate Sample rate inside the filter. We can't assume it's the same as the device input or output rate. This property has id ``4.3``. Properties inherited from :ref:`OcaWorker `: - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` Properties inherited from :ref:`OcaRoot `: - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` **Methods**: .. _ocafilterfir_getlength: .. cpp:function:: OcaStatus GetLength(OcaUint32 &Length, OcaUint32 &minLength, OcaUint32 &maxLength) Gets the length of the FIR filter. The return value indicates whether the value was successfully retrieved. This method has id ``4.1``. :param OcaUint32 Length: Output parameter. :param OcaUint32 minLength: Output parameter. :param OcaUint32 maxLength: Output parameter. .. _ocafilterfir_getcoefficients: .. cpp:function:: OcaStatus GetCoefficients(OcaList &Coefficients) Gets the coefficients of the FIR filter. The return value indicates whether the coefficients were successfully retrieved. This method has id ``4.2``. :param OcaList Coefficients: Output parameter. .. _ocafilterfir_setcoefficients: .. cpp:function:: OcaStatus SetCoefficients(OcaList Coefficients) Sets the value of the properties of the FIR filter. The return value indicates whether the properties were successfully set. This method has id ``4.3``. :param OcaList Coefficients: Input parameter. .. _ocafilterfir_getsamplerate: .. cpp:function:: OcaStatus GetSampleRate(OcaFrequency &Rate, OcaFrequency &minRate, OcaFrequency &maxRate) Gets the sample rate of the FIR filter. The return value indicates whether the data was successfully retrieved. This method has id ``4.4``. :param OcaFrequency Rate: Output parameter. :param OcaFrequency minRate: Output parameter. :param OcaFrequency maxRate: Output parameter. .. _ocafilterfir_setsamplerate: .. cpp:function:: OcaStatus SetSampleRate(OcaFrequency Rate) Sets the sample rate of the FIR filter. The return value indicates whether the rate was successfully set. This method has id ``4.5``. :param OcaFrequency Rate: Input parameter. Methods inherited from :ref:`OcaWorker `: - :ref:`OcaWorker::GetEnabled(enabled) ` - :ref:`OcaWorker::SetEnabled(enabled) ` - :ref:`OcaWorker::AddPort(Label, Mode, ID) ` - :ref:`OcaWorker::DeletePort(ID) ` - :ref:`OcaWorker::GetPorts(OcaPorts) ` - :ref:`OcaWorker::GetPortName(PortID, Name) ` - :ref:`OcaWorker::SetPortName(PortID, Name) ` - :ref:`OcaWorker::GetLabel(label) ` - :ref:`OcaWorker::SetLabel(label) ` - :ref:`OcaWorker::GetOwner(owner) ` - :ref:`OcaWorker::GetLatency(latency) ` - :ref:`OcaWorker::SetLatency(latency) ` - :ref:`OcaWorker::GetPath(NamePath, ONoPath) ` Methods inherited from :ref:`OcaRoot `: - :ref:`OcaRoot::GetClassIdentification(ClassIdentification) ` - :ref:`OcaRoot::GetLockable(lockable) ` - :ref:`OcaRoot::LockTotal() ` - :ref:`OcaRoot::Unlock() ` - :ref:`OcaRoot::GetRole(Role) ` - :ref:`OcaRoot::LockReadonly() `